/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cageballcommon.messages;

/**
 *
 * @author kanonas
 */
public class Ball implements Position{
    private float x;
    private float y;
    
    public Ball() {

    }

    public Ball(Ball ball) {
        this.x = ball.getX();
        this.y = ball.getY();
    }
    
    public Ball(float xPos, float yPos) {
        this.x = xPos;
        this.y = yPos;
    }

    public float getX() {
        return x;
    }

    public void setX(float xPos) {
        this.x = xPos;
    }

    public float getY() {
        return y;
    }

    public void setY(float yPos) {
        this.y = yPos;
    }

    public String toString(){
        return "xPos=" + x + " yPos=" + y;
    }
}
